package com.example.demo.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AfterSaleTargetZ1;
import com.example.demo.entity.AfterSaleTargetZ2;
import com.example.demo.entity.SysUser;
import com.example.demo.repository.AfterSaleTargetZ1Repository;
import com.example.demo.repository.AfterSaleTargetZ2Repository;

@Service
public class AfterSaleTargetZ1Service extends BaseService<AfterSaleTargetZ1, Integer> {
	@Autowired
	private AfterSaleTargetZ1Repository r1;

	public AfterSaleTargetZ1 findByDateAndUser(Date date, SysUser myUser) {
		// TODO Auto-generated method stub
		return r1.findByDateAndUser(date, myUser);
	}

	public AfterSaleTargetZ1 findByUserIdAndDate(Integer userId, Date date) {
		// TODO Auto-generated method stub
		return r1.findByUserIdAndDate(userId, date);
	}
	public AfterSaleTargetZ1 findByUser(SysUser user) {
		// TODO Auto-generated method stub
		return r1.findByUser(user);
	}
}
